import React from 'react';

import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom';

import App from '../components/homepage/homepage.jsx'

import Account from '../components/my_account/account'
import Login from '../components/login/login.jsx'
import Register from '../components/register/register.jsx'
import Homepage from '../components/homepage/homepage.jsx'
import Product_list from '../components/product_list/product_list.jsx'
import Cart from '../components/shopping_cart/cart.jsx'
import Product from '../components/product_details/product.jsx'
import De_address from '../components/address/delivery_address/de_address.jsx'
import Pay from '../components/paypal/pay.jsx'
import Order from '../components/paypal/order/order.jsx'
import Pay_login from '../components/paypal/paypal_login/pay_login.jsx'
 

const router = class RouterMap extends React.Component {
     render() {
        return (

            <Router>
                <Switch>

                    <Route exact path="/" component={App} />
                    <Route exact path="/login" component={Login} />
                    <Route exact path="/account" component={Account} />
                    <Route exact path="/register" component={Register} />
                    <Route exact path="/homepage" component={Homepage} />
                    <Route exact path="/product_list" component={Product_list} />
                    <Route exact path="/shopping_cart" component={Cart} />
                    <Route exact path="/product_details" component={Product} />
                    <Route exact path="/delivery_address" component={De_address} />
                    <Route exact path="/pay" component={Pay} />
                    <Route exact path="/order" component={Order} />
                    <Route exact path="/pay_login" component={Pay_login} />

                </Switch>
            </Router>

        )
    }

}
export default router;